package com.gdpu.liou.symphonyserver.entity.respose;

/**
 * @author liuyx
 * @create 2022/1/19 14:32 周三
 */
public enum ResponseCode {
    /**
     * 状态码 200 表示成功
     */
    SUCCESS(200, "success"),
    /**
     *
     */
    EMPTY(200, "data is empty"),
    /**
     * 状态码 500
     */
    SERVER_ERROR(500,"server error")	,
    /**
     * 状态码 422 Unprocessable Entity
     */
    MISSING_FIELD(422,"缺少必填参数")




    ;

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
